package com.teacher.pc.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.goodthings.GoodThingsGetDto;
import com.teacher.pojo.vo.goodthings.GoodThingsGetVo;
import com.teacher.pojo.vo.innovativeundertaking.InnovativeUndertakingGetVo;
import com.teacher.service.IInnovativeUndertakingService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 创新创业认定 一条 0.5 前端控制器
 * </p>
 *
 * @author zfm
 * @since 2021-08-13
 */
@RestController
@RequestMapping("/pc/innovative-undertaking")
public class InnovativeUndertakingController {

    @Autowired
    private IInnovativeUndertakingService iInnovativeUndertakingService;

    /**
     * 查询创新创业认定
     *
     * @param dto
     * @return
     */
    @ApiOperation("查询创新创业认定")
    @GetMapping
    @PreAuthorize("hasAuthority('innovativeUndertaking_get')")
    public CommonResult<IPage<InnovativeUndertakingGetVo>> getPage(GoodThingsGetDto dto) {
        return iInnovativeUndertakingService.getPage(dto);
    }


}

